package com.zbs.framework.swagger.view;

import com.zbs.framework.swagger.entity.RequestParams;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;


@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Accessors(chain = true)
public class ApiView {

    /**
     * id
     */
    private Integer  id;

    /**
     * api名称
     */
    private String apiName;

    /**
     * 请求路径
     */
    private String path;

    /**
     * 请求方法
     */
    private String method;

    /**
     * 接收参数类型
     */
    private String requestType;

    /**
     * 接收参数列表
     */
    private List<RequestParams> requestParamsList;


    /**
     * 返回参数列表
     */
    private List<RequestParams> responseParamsList;

    /**
     * 返回参数是否是数组
     */
    private boolean responseIsArray;

    /**
     * 父级id
     */
    private Integer parentId;

}
